This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
So, I did as suggested and the messagebox is displaying the message that corresponds to the Else statement, but there's no text in the messagebox. WHAT? The field I'm after is the ShortName field in the person doc of the NAB, which I have confirmed is a text list containing multiple entries.)
The relevant segment of my code reads:
Dim doc As NotesDocument
Dim item As NotesItem
Set item = doc.GetFirstItem( "ShortName" )
If ( item Is Nothing ) Then
Messagebox( "There is no short name item on the document." )
Else
Messagebox( _
"The short name item on the document has the value: " _
+ item.Text )
End If
If item.Values(0)<>"" Then
....and it continues from there ...
The prompt reads, "The short name item on the document has the value:" with nothing else. Then it throws an 'Object variable not set' error at the line that reads, If item.Values(0)<>"" Then
I've also tried swapping the ShortName for the InternetAddress field, which is a text string (not list) with the same results. It's so weird. Anyone have any ideas?
Feedback response number WEBBAU8KWT created by ~Phil Refanaskioden on 12/20/2017